/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;
  const Model = app.model.define('upload', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
    },
    path: {
      type: DataTypes.STRING(200),
      allowNull: true,
    },
    createtime: {
      type: DataTypes.TIME,
      allowNull: false,
      defaultValue: DataTypes.literal('CURRENT_TIMESTAMP'),
    },
    updatetime: {
      type: DataTypes.DATE,
      allowNull: true,
    },
  }, {
    tableName: 'upload',
  });

  Model.associate = function() {

  };

  return Model;
};
